/* Custom Styles for Aldar Properties - Bootstrap Integration */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Hero Section */
.hero-image {
    height: 400px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    margin-top: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

/* Filter Section */
.filter-section {
    background-color: #ffffff;
}

.filter-btn {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a !important;
    padding: 12px 24px !important;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #f8f8f8 !important;
}

.filter-btn.active {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #1a1a1a !important;
}

.search-bar {
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #B6A171;
    font-size: 16px;
    z-index: 10;
}

.search-bar .form-control {
    padding-left: 45px !important;
    border: 1px solid #e0e0e0;
    color: #a5a5a5;
}

.search-bar .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
}

.category-dropdown {
    position: relative;
}

.category-dropdown .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding-right: 40px;
    appearance: none;
    --bs-form-select-bg-img: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e);
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /*background-color: var(--bs-body-bg);*/
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    /*border: var(--bs-border-width) solid var(--bs-border-color);*/
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.category-dropdown .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
}

.category-dropdown i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #B6A171;
    pointer-events: none;
    z-index: 10;
}

/* Offers Section */
.offers-heading {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.filter-part{
    background: #B6A1711A;
    padding: 50px;
}

.offer-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.offer-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.offer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.offer-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffffff;
    color: #000000;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.offer-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offer-category {
    font-size: 12px;
    color: #010101;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    background-color: #DADADA;
    padding: 4px 8px;
    display: inline-block;
    width: fit-content;
    font-weight: 500;
}

.offer-brand {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.offer-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.offer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.offer-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.offer-detail i {
    color: #666;
    font-size: 14px;
}

.view-offer-btn {
    width: 100%;
    padding: 12px;
    background-color: #B6A171;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: auto;
}

.view-offer-btn:hover {
    background-color: #000000;
}

/* Pagination */
.page-btn {
    padding: 8px 14px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.page-btn:hover {
    background-color: #f8f8f8;
}

.page-btn.active {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-btn {
    padding: 8px 12px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-image {
        height: 350px;
    }
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-image {
        height: 300px;
    }
    .filter-btn {
        font-size: 12px;
        padding: 10px 16px !important;
    }
}

@media (max-width: 575.98px) {
    .hero-image {
        height: 250px;
    }
    .hero-title {
        font-size: 24px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background-color: #ffffff;
    max-width: 700px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 10000;
    padding: 5px 10px;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #1a1a1a;
}

.modal-header {
    background: #B6A171;
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.modal-brand-logo-wrapper {
    display: inline-block;
    background: #ffffff;
    padding: 20px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-brand-logo {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
    line-height: 1.2;
}

.modal-brand-logo span {
    display: block;
}

.modal-brand-logo span:first-child {
    font-size: 28px;
    font-weight: 700;
}

.modal-brand-logo span:last-child {
    font-size: 16px;
    font-weight: 300;
    margin-top: 4px;
}

.modal-body {
    padding: 30px;
}

.modal-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid#D1D1D1;
}

.modal-title-content {
    flex: 1;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 16px;
    color: #000000;
    margin: 0;
    font-weight: 400;
}

.modal-offer-highlight {
    background: #B6A171;
    padding: 15px 25px;
    border-radius: 4px;
    text-align: center;
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-offer-highlight span {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.4;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 0;
}

.modal-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #faf8f5;
    padding: 15px;
    border-radius: 4px;
}

.modal-detail-item i {
    font-size: 20px;
    color: #B6A171;
    margin-top: 2px;
    min-width: 24px;
}

.modal-detail-item div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.detail-label {
    font-size: 12px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #B6A171;
}

.modal-terms {
    margin-bottom: 30px;
    background: #B6A1711A;
    padding: 15px;
}

.terms-title {
    font-size: 18px;
    font-weight: 600;
    color: #B6A171;
    margin-bottom: 15px;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-list li {
    font-size: 14px;
    color: #000000;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.terms-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1a1a1a;
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-website {
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d4b8 100%);
    color: #1a1a1a;
}

.btn-website:hover {
    background: linear-gradient(135deg, #e8d4b8 0%, #dcc5a5 100%);
    transform: translateY(-1px);
}

.btn-directions {
    background-color: #1a1a1a;
    color: #ffffff;
}

.btn-directions:hover {
    background-color: #333;
    transform: translateY(-1px);
}

.btn-share {
    background-color: #f5f5f5;
    color: #1a1a1a;
    min-width: 50px;
    flex: 0 0 auto;
}

.btn-share:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        /*margin: 10px;*/
        max-width: calc(100% - 20px);
    }
    .modal-body {
        padding: 20px;
    }
    .modal-title-section {
        flex-direction: column;
        gap: 15px;
    }
    .modal-offer-highlight {
        min-width: 100%;
        width: 100%;
    }
    .modal-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .modal-actions {
        flex-direction: column;
    }
    .modal-btn {
        width: 100%;
        min-width: 100%;
    }
    .modal-brand-logo-wrapper {
        padding: 15px 20px;
    }
    .modal-brand-logo {
        font-size: 24px;
    }
}

